<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录 - 绝区零社区</title>
    <link rel="stylesheet" href="styles/main.css">
    <link rel="stylesheet" href="styles/login.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar">
        <div class="nav-container">
            <div class="logo">
                <img src="images/logo.png" alt="绝区零社区">
                <span>绝区零社区</span>
            </div>
            <div class="nav-links">
                <a href="index.html">首页</a>
                <a href="#">攻略中心</a>
                <a href="#">角色图鉴</a>
                <a href="#">社区论坛</a>
                <a href="#">赛事资讯</a>
            </div>
        </div>
    </nav>

    <!-- 登录区域 -->
    <main class="login-container">
        <div class="login-wrapper">
            <!-- 左侧图片区域 -->
            <div class="login-image">
                <img src="images/login-banner.jpg" alt="绝区零游戏场景">
                <div class="image-overlay">
                    <h2>欢迎回到绝区零</h2>
                    <p>加入我们的游戏社区，探索更多精彩内容</p>
                </div>
            </div>

            <!-- 右侧登录表单 -->
            <div class="login-box">
                <div class="login-header">
                    <h2>账号登录</h2>
                    <p>欢迎回来，请登录您的账号</p>
                </div>

                <form id="loginForm" class="login-form">
                    <div class="form-group">
                        <label for="phone">手机号码</label>
                        <div class="input-group">
                            <i class="fas fa-mobile-alt"></i>
                            <input type="tel" id="phone" name="phone" placeholder="请输入手机号码" required>
                        </div>
                        <span class="error-message" id="phoneError"></span>
                    </div>

                    <div class="form-group">
                        <label for="password">密码</label>
                        <div class="input-group">
                            <i class="fas fa-lock"></i>
                            <input type="password" id="password" name="password" placeholder="请输入密码" required>
                            <i class="fas fa-eye-slash toggle-password"></i>
                        </div>
                        <span class="error-message" id="passwordError"></span>
                    </div>

                    <div class="form-options">
                        <label class="remember-me">
                            <input type="checkbox" id="remember" name="remember">
                            <span>记住我</span>
                        </label>
                        <a href="#" class="forgot-password">忘记密码？</a>
                    </div>

                    <div class="form-group">
                        <button type="submit" class="login-submit">
                            <span>登录</span>
                            <i class="fas fa-arrow-right"></i>
                        </button>
                    </div>

                    <div class="form-footer">
                        <p>还没有账号？<a href="register.html">立即注册</a></p>
                    </div>

                    <!-- 其他登录方式 -->
                    <div class="other-login">
                        <div class="divider">
                            <span>其他登录方式</span>
                        </div>
                        <div class="social-login">
                            <a href="#" class="social-btn wechat">
                                <i class="fab fa-weixin"></i>
                            </a>
                            <a href="#" class="social-btn qq">
                                <i class="fab fa-qq"></i>
                            </a>
                            <a href="#" class="social-btn weibo">
                                <i class="fab fa-weibo"></i>
                            </a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </main>

    <script src="js/login.js"></script>
</body>
</html>